﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClientLib.Common;

namespace WpfDataBingding.DevTreeData
{
    public class StaticState
    {
        private string name;
        private AttributeValue attributeValue;
        private Device deviceBelongTo;//属于哪个设备

        public Device DeviceBelongTo//属于哪个设备
        {
            get { return deviceBelongTo; }
            set { deviceBelongTo = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        
        public AttributeValue AttributeValue
        {
            get { return attributeValue; }
            set { attributeValue = value; }
        }

        /// <summary>
        /// 重载ToString，返回属性值的显示
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return this.attributeValue.ToString();
        }
    }
}
